/*
  this code is used to get what's new feed for dashboard and workspaces
  currently not implemented as we had nowhere to put it in the UI
*/

function WhatsNew() {
  
  this.get = function(id) {
    /*
    if (id==undefined) {
    
      json.getData("whatsnew", whatsnew.display);
    
    } else {
    
      json.getData("whatsnewworkspace", whatsnew.display, id);
    
    }
    */
  }

  this.display = function(data) {
    /*
    feed = data.Data;
    
    for (x in feed) {
    
      air.trace("Date: " + feed[x].DateAdded.Day + "/" + feed[x].DateAdded.Month + "/" + feed[x].DateAdded.Year + "; " + feed[x].DateAdded.Hour + ":" + feed[x].DateAdded.Minute);
      air.trace("Description: " + feed[x].Description);
      air.trace("Display Name: " + feed[x].DisplayName);
      air.trace("Target Id: " + feed[x].TargetId);
      air.trace("Target Text: " + feed[x].TargetText);
      air.trace("Target Type: " + feed[x].TargetType);
      air.trace("Target Uri: " + feed[x].Uri);
      air.trace("User Id: " + feed[x].UserId);
      air.trace("Version No: " + feed[x].VersionNumber);
      air.trace("Workspace Id: " + feed[x].WorkspaceId);
      air.trace("Workspace Title: " + feed[x].WorkspaceTitle);
      
      air.trace("--------------------------------------");
    
    }

  */
  }
  
}